#!/usr/bin/env python
# -*- coding: utf-8 -*-

""" 导出微信的通讯录 """

import itchat


def main():
    "获取通讯录"
    # 获取通讯录
    friends = itchat.get_friends(update=True)
    print("获取通讯录")
    # 打印通讯录
    for friend in friends:
        print(friend['NickName'], friend['RemarkName'], friend['UserName'])


if __name__ == '__main__':
    main()
